package net.lzzy.practices.web.models;

import lombok.Getter;

import java.util.Objects;

/**
 * 定义RESTful 接口返回数据的形式
 * @author m
 */
//@Data
@Getter
public class ApiResult {
    //请求是否成功
    private final boolean success;
    //
    private  final String message;

    private final Object data;

    public ApiResult(boolean success, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }
}
